﻿#include "widget3.h"
#include "ui_widget3.h"

Widget3::Widget3(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget3)
{
    ui->setupUi(this);

    setWindowFlags(Qt::FramelessWindowHint);
    this->setStyleSheet("QPushButton#pushButton{background:none;border-image:url(:/res/1.png);}"
                        "QPushButton#pushButton:hover{background:none;border-image:url(:/res/1-hover.png);}"
                        "QPushButton#pushButton_2{background:none;border-image:url(:/res/2.png);}"
                        "QPushButton#pushButton_2:hover{background:none;border-image:url(:/res/2-hover.png);}"
                        "QPushButton#pushButton_3{background:none;border-image:url(:/res/3.png);}"
                        "QPushButton#pushButton_3:hover{background:none;border-image:url(:/res/3-hover.png);}"
                        "QPushButton#pushButton_4{background:none;border-image:url(:/res/4.png);}"
                        "QPushButton#pushButton_4:hover{background:none;border-image:url(:/res/4-hover.png);}"
                        "QPushButton#pushButton_5{background:none;border-image:url(:/res/5.png);}"
                        "QPushButton#pushButton_5:hover{background:none;border-image:url(:/res/5-hover.png);}"
                        "QPushButton#pushButton_6{background:none;border-image:url(:/res/6.png);}"
                        "QPushButton#pushButton_6:hover{background:none;border-image:url(:/res/6-hover.png);}");
}

Widget3::~Widget3()
{
    delete ui;
}

void Widget3::on_pushButton_clicked()
{
    emit SignalWidget3Chang(0);
}

void Widget3::on_pushButton_2_clicked()
{
    emit SignalWidget3Chang(1);
}

void Widget3::on_pushButton_3_clicked()
{
    emit SignalWidget3Chang(2);
}

void Widget3::on_pushButton_4_clicked()
{
    emit SignalWidget3Chang(3);
}

void Widget3::on_pushButton_5_clicked()
{
    emit SignalWidget3Chang(4);
}

void Widget3::on_pushButton_6_clicked()
{
    emit SignalWidget3Chang(5);
}
